package com.fire.entry;


import com.fire.controller.IStudentController;
import com.fire.controller.ITeacherController;
import com.fire.controller.impl.StudentControllerImpl;
import com.fire.controller.impl.TeacherControllerImpl;
import com.fire.factory.Factory;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.time.Duration;
import java.time.LocalDateTime;
import java.util.Scanner;

public class Entry {
    public static void main(String[] args) throws IOException {
        while (true) {
            ITeacherController teacherController = Factory.getTeacherControllerImpl();
            System.out.println("-------欢迎来到黑马学生信息管理系统-------");
            System.out.println("请输入您的选择  1.登录  2.注册  3.退出");
            Scanner sc = new Scanner(System.in);
            int choice = sc.nextInt();
            switch (choice){
                case 1:
                    teacherController.Login();
                    break;
                case 2:
                    teacherController.Register();
                    break;
                case 3:
                    return;
                default:
                    System.out.println("请输入正确的选择");
            }
        }
    }


}
